<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/3/4
 * Time: 21:13
 */

namespace app\common\model\traits;


use app\common\model\BoolStatus;

trait Status
{
    /**
     * 获取状态名称
     * @param int $value 状态值
     * @return mixed
     */
    public function getStatusAttr($value)
    {
        $status = BoolStatus::getColorLables();
        return $status[$value];
    }
}